import dgRequest from '../'

export function getTasks(limit, offset, date) {
  return dgRequest.get({
    url: '/task/list',
    params: {
      limit,
      offset,
      date
    }
  })
}

export function updateTask(task) {
  return dgRequest.post({
    url: '/task/update',
    data: task
  })
}